import fly from '@/common/fly';


/**
 * 获取 租赁单列表
 * @param params
 * @returns {*}
 */

export function tenancyList(page) {
    return fly.request({
        url: '/baoxiu/repaire/getAllRepaireByUid',
        method: 'GET',
        params: {
            ...page
        },
    })
}

export function getBuildingDel(buildType) {
    return fly.request({
        url: '/baoxiu/buildDetail/findAllByType',
        method: 'GET',
        params: {
            buildType
        },
    })
}
export function getGoods(buildType) {
    return fly.request({
        url: '/baoxiu/goods/findAllByType',
        method: 'GET',
        params: {
            buildType
        },
    })
}
export function getOrderDetail(rid) {
    return fly.request({
        url: '/baoxiu/repaire/getAllrepaireDetailById',
        method: 'GET',
        params: {
            rid
        },
    })
}
export function addRepaire(repaire) {
    return fly.request({
        url: '/baoxiu/repaire/add',
        method: 'POST',
        params: {...repaire}
    })
}

